/**
 * @author gaopeng
 * @date 2019/12/15 2:49 下午
 */
public class Adapter implements IUserInfo {
    private OtherUserInfo info;

    public Adapter(OtherUserInfo info) {
        this.info = info;
    }

    @Override
    public String getName() {
        return info.getUserInfo().get("name");
    }

    @Override
    public String address() {
        return info.getUserInfo().get("address");
    }

    @Override
    public String getPhone() {
        return info.getUserInfo().get("phone");
    }
}
